package com.itheima.map;

import java.util.HashMap;

public class MapDemo03 {
    public static void main(String[] args) {
        HashMap<Student,String> hm=new HashMap<>();
        Student stu1=new Student("zhangsan",18);
        Student stu2=new Student("lisi",22);
        Student stu3=new Student("wangwu",19);
        hm.put(stu1,"男");
        hm.put(stu2,"女");
        hm.put(stu3,"女");

    }
}
